.class public Lrexsee/core/browser/clazz/SyncTask;
.super Ljava/lang/Object;
.source "SyncTask.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lrexsee/core/browser/clazz/SyncTask$BooleanRunnable;,
        Lrexsee/core/browser/clazz/SyncTask$IntRunnable;,
        Lrexsee/core/browser/clazz/SyncTask$StringRunnable;
    }
.end annotation


# instance fields
.field private mActivityReturn:Lrexsee/core/browser/clazz/ActivityReturn;

.field private mBooleanRtn:Z

.field private mIntRtn:I

.field private mStringRtn:Ljava/lang/String;

.field private mSyncTag:Z

.field private mThread:Ljava/lang/Thread;


# direct methods
.method public constructor <init>()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    const/4 v0, 0x0

    .line 8
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 10
    iput-boolean v0, p0, Lrexsee/core/browser/clazz/SyncTask;->mSyncTag:Z

    .line 13
    iput-object v1, p0, Lrexsee/core/browser/clazz/SyncTask;->mStringRtn:Ljava/lang/String;

    .line 14
    iput-boolean v0, p0, Lrexsee/core/browser/clazz/SyncTask;->mBooleanRtn:Z

    .line 15
    const/4 v0, -0x1

    iput v0, p0, Lrexsee/core/browser/clazz/SyncTask;->mIntRtn:I

    .line 16
    iput-object v1, p0, Lrexsee/core/browser/clazz/SyncTask;->mActivityReturn:Lrexsee/core/browser/clazz/ActivityReturn;

    .line 8
    return-void
.end method

.method static synthetic access$0(Lrexsee/core/browser/clazz/SyncTask;Ljava/lang/Thread;)V
    .locals 0

    .prologue
    .line 11
    iput-object p1, p0, Lrexsee/core/browser/clazz/SyncTask;->mThread:Ljava/lang/Thread;

    return-void
.end method

.method static synthetic access$1(Lrexsee/core/browser/clazz/SyncTask;Z)V
    .locals 0

    .prologue
    .line 10
    iput-boolean p1, p0, Lrexsee/core/browser/clazz/SyncTask;->mSyncTag:Z

    return-void
.end method

.method static synthetic access$2(Lrexsee/core/browser/clazz/SyncTask;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 13
    iput-object p1, p0, Lrexsee/core/browser/clazz/SyncTask;->mStringRtn:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$3(Lrexsee/core/browser/clazz/SyncTask;Z)V
    .locals 0

    .prologue
    .line 14
    iput-boolean p1, p0, Lrexsee/core/browser/clazz/SyncTask;->mBooleanRtn:Z

    return-void
.end method

.method static synthetic access$4(Lrexsee/core/browser/clazz/SyncTask;I)V
    .locals 0

    .prologue
    .line 15
    iput p1, p0, Lrexsee/core/browser/clazz/SyncTask;->mIntRtn:I

    return-void
.end method

.method static synthetic access$5(Lrexsee/core/browser/clazz/SyncTask;Lrexsee/core/browser/clazz/ActivityReturn;)V
    .locals 0

    .prologue
    .line 16
    iput-object p1, p0, Lrexsee/core/browser/clazz/SyncTask;->mActivityReturn:Lrexsee/core/browser/clazz/ActivityReturn;

    return-void
.end method


# virtual methods
.method public run(Lrexsee/core/browser/clazz/SyncTask$IntRunnable;Lrexsee/core/browser/Browser;Z)I
    .locals 3
    .param p1, "runnable"    # Lrexsee/core/browser/clazz/SyncTask$IntRunnable;
    .param p2, "browser"    # Lrexsee/core/browser/Browser;
    .param p3, "cancelable"    # Z

    .prologue
    .line 121
    if-eqz p2, :cond_0

    .line 122
    if-eqz p3, :cond_2

    .line 123
    iget-object v0, p2, Lrexsee/core/browser/Browser;->progressDialog:Lrexsee/core/progress/RexseeProgressDialog;

    sget-object v1, Lrexsee/core/lang/RexseeLanguage;->PROGRESS_ONGOING:Ljava/lang/String;

    new-instance v2, Lrexsee/core/browser/clazz/SyncTask$7;

    invoke-direct {v2, p0}, Lrexsee/core/browser/clazz/SyncTask$7;-><init>(Lrexsee/core/browser/clazz/SyncTask;)V

    invoke-virtual {v0, v1, v2}, Lrexsee/core/progress/RexseeProgressDialog;->showWithRunnable(Ljava/lang/String;Ljava/lang/Runnable;)V

    .line 135
    :cond_0
    :goto_0
    new-instance v0, Lrexsee/core/browser/clazz/SyncTask$8;

    invoke-direct {v0, p0, p1}, Lrexsee/core/browser/clazz/SyncTask$8;-><init>(Lrexsee/core/browser/clazz/SyncTask;Lrexsee/core/browser/clazz/SyncTask$IntRunnable;)V

    iput-object v0, p0, Lrexsee/core/browser/clazz/SyncTask;->mThread:Ljava/lang/Thread;

    .line 142
    const/4 v0, -0x1

    iput v0, p0, Lrexsee/core/browser/clazz/SyncTask;->mIntRtn:I

    .line 143
    const/4 v0, 0x0

    iput-boolean v0, p0, Lrexsee/core/browser/clazz/SyncTask;->mSyncTag:Z

    .line 144
    iget-object v0, p0, Lrexsee/core/browser/clazz/SyncTask;->mThread:Ljava/lang/Thread;

    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    .line 145
    :goto_1
    iget-boolean v0, p0, Lrexsee/core/browser/clazz/SyncTask;->mSyncTag:Z

    if-eqz v0, :cond_3

    .line 151
    const/4 v0, 0x0

    iput-object v0, p0, Lrexsee/core/browser/clazz/SyncTask;->mThread:Ljava/lang/Thread;

    .line 152
    if-eqz p2, :cond_1

    iget-object v0, p2, Lrexsee/core/browser/Browser;->progressDialog:Lrexsee/core/progress/RexseeProgressDialog;

    invoke-virtual {v0}, Lrexsee/core/progress/RexseeProgressDialog;->hide()V

    .line 153
    :cond_1
    iget v0, p0, Lrexsee/core/browser/clazz/SyncTask;->mIntRtn:I

    return v0

    .line 132
    :cond_2
    iget-object v0, p2, Lrexsee/core/browser/Browser;->progressDialog:Lrexsee/core/progress/RexseeProgressDialog;

    sget-object v1, Lrexsee/core/lang/RexseeLanguage;->PROGRESS_ONGOING:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lrexsee/core/progress/RexseeProgressDialog;->show(Ljava/lang/String;)V

    goto :goto_0

    .line 147
    :cond_3
    const-wide/16 v0, 0x64

    :try_start_0
    invoke-static {v0, v1}, Ljava/lang/Thread;->sleep(J)V
    :try_end_0
    .catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    .line 148
    :catch_0
    move-exception v0

    goto :goto_1
.end method

.method public run(Lrexsee/core/browser/clazz/SyncTask$StringRunnable;Lrexsee/core/browser/Browser;Z)Ljava/lang/String;
    .locals 4
    .param p1, "runnable"    # Lrexsee/core/browser/clazz/SyncTask$StringRunnable;
    .param p2, "browser"    # Lrexsee/core/browser/Browser;
    .param p3, "cancelable"    # Z

    .prologue
    const/4 v3, 0x0

    .line 51
    if-eqz p2, :cond_0

    .line 52
    if-eqz p3, :cond_2

    .line 53
    iget-object v0, p2, Lrexsee/core/browser/Browser;->progressDialog:Lrexsee/core/progress/RexseeProgressDialog;

    sget-object v1, Lrexsee/core/lang/RexseeLanguage;->PROGRESS_ONGOING:Ljava/lang/String;

    new-instance v2, Lrexsee/core/browser/clazz/SyncTask$3;

    invoke-direct {v2, p0}, Lrexsee/core/browser/clazz/SyncTask$3;-><init>(Lrexsee/core/browser/clazz/SyncTask;)V

    invoke-virtual {v0, v1, v2}, Lrexsee/core/progress/RexseeProgressDialog;->showWithRunnable(Ljava/lang/String;Ljava/lang/Runnable;)V

    .line 65
    :cond_0
    :goto_0
    new-instance v0, Lrexsee/core/browser/clazz/SyncTask$4;

    invoke-direct {v0, p0, p1}, Lrexsee/core/browser/clazz/SyncTask$4;-><init>(Lrexsee/core/browser/clazz/SyncTask;Lrexsee/core/browser/clazz/SyncTask$StringRunnable;)V

    iput-object v0, p0, Lrexsee/core/browser/clazz/SyncTask;->mThread:Ljava/lang/Thread;

    .line 72
    iput-object v3, p0, Lrexsee/core/browser/clazz/SyncTask;->mStringRtn:Ljava/lang/String;

    .line 73
    const/4 v0, 0x0

    iput-boolean v0, p0, Lrexsee/core/browser/clazz/SyncTask;->mSyncTag:Z

    .line 74
    iget-object v0, p0, Lrexsee/core/browser/clazz/SyncTask;->mThread:Ljava/lang/Thread;

    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    .line 75
    :goto_1
    iget-boolean v0, p0, Lrexsee/core/browser/clazz/SyncTask;->mSyncTag:Z

    if-eqz v0, :cond_3

    .line 81
    iput-object v3, p0, Lrexsee/core/browser/clazz/SyncTask;->mThread:Ljava/lang/Thread;

    .line 82
    if-eqz p2, :cond_1

    iget-object v0, p2, Lrexsee/core/browser/Browser;->progressDialog:Lrexsee/core/progress/RexseeProgressDialog;

    invoke-virtual {v0}, Lrexsee/core/progress/RexseeProgressDialog;->hide()V

    .line 83
    :cond_1
    iget-object v0, p0, Lrexsee/core/browser/clazz/SyncTask;->mStringRtn:Ljava/lang/String;

    return-object v0

    .line 62
    :cond_2
    iget-object v0, p2, Lrexsee/core/browser/Browser;->progressDialog:Lrexsee/core/progress/RexseeProgressDialog;

    sget-object v1, Lrexsee/core/lang/RexseeLanguage;->PROGRESS_ONGOING:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lrexsee/core/progress/RexseeProgressDialog;->show(Ljava/lang/String;)V

    goto :goto_0

    .line 77
    :cond_3
    const-wide/16 v0, 0x64

    :try_start_0
    invoke-static {v0, v1}, Ljava/lang/Thread;->sleep(J)V
    :try_end_0
    .catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    .line 78
    :catch_0
    move-exception v0

    goto :goto_1
.end method

.method public run(Ljava/lang/Runnable;Lrexsee/core/browser/Browser;Z)V
    .locals 3
    .param p1, "runnable"    # Ljava/lang/Runnable;
    .param p2, "browser"    # Lrexsee/core/browser/Browser;
    .param p3, "cancelable"    # Z

    .prologue
    .line 19
    if-eqz p2, :cond_0

    .line 20
    if-eqz p3, :cond_2

    .line 21
    iget-object v0, p2, Lrexsee/core/browser/Browser;->progressDialog:Lrexsee/core/progress/RexseeProgressDialog;

    sget-object v1, Lrexsee/core/lang/RexseeLanguage;->PROGRESS_ONGOING:Ljava/lang/String;

    new-instance v2, Lrexsee/core/browser/clazz/SyncTask$1;

    invoke-direct {v2, p0}, Lrexsee/core/browser/clazz/SyncTask$1;-><init>(Lrexsee/core/browser/clazz/SyncTask;)V

    invoke-virtual {v0, v1, v2}, Lrexsee/core/progress/RexseeProgressDialog;->showWithRunnable(Ljava/lang/String;Ljava/lang/Runnable;)V

    .line 32
    :cond_0
    :goto_0
    new-instance v0, Lrexsee/core/browser/clazz/SyncTask$2;

    invoke-direct {v0, p0}, Lrexsee/core/browser/clazz/SyncTask$2;-><init>(Lrexsee/core/browser/clazz/SyncTask;)V

    iput-object v0, p0, Lrexsee/core/browser/clazz/SyncTask;->mThread:Ljava/lang/Thread;

    .line 38
    const/4 v0, 0x0

    iput-boolean v0, p0, Lrexsee/core/browser/clazz/SyncTask;->mSyncTag:Z

    .line 39
    iget-object v0, p0, Lrexsee/core/browser/clazz/SyncTask;->mThread:Ljava/lang/Thread;

    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    .line 40
    :goto_1
    iget-boolean v0, p0, Lrexsee/core/browser/clazz/SyncTask;->mSyncTag:Z

    if-eqz v0, :cond_3

    .line 46
    const/4 v0, 0x0

    iput-object v0, p0, Lrexsee/core/browser/clazz/SyncTask;->mThread:Ljava/lang/Thread;

    .line 47
    if-eqz p2, :cond_1

    iget-object v0, p2, Lrexsee/core/browser/Browser;->progressDialog:Lrexsee/core/progress/RexseeProgressDialog;

    invoke-virtual {v0}, Lrexsee/core/progress/RexseeProgressDialog;->hide()V

    .line 48
    :cond_1
    return-void

    .line 29
    :cond_2
    iget-object v0, p2, Lrexsee/core/browser/Browser;->progressDialog:Lrexsee/core/progress/RexseeProgressDialog;

    sget-object v1, Lrexsee/core/lang/RexseeLanguage;->PROGRESS_ONGOING:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lrexsee/core/progress/RexseeProgressDialog;->show(Ljava/lang/String;)V

    goto :goto_0

    .line 42
    :cond_3
    const-wide/16 v0, 0x64

    :try_start_0
    invoke-static {v0, v1}, Ljava/lang/Thread;->sleep(J)V
    :try_end_0
    .catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    .line 43
    :catch_0
    move-exception v0

    goto :goto_1
.end method

.method public run(Lrexsee/core/browser/clazz/SyncTask$BooleanRunnable;Lrexsee/core/browser/Browser;Z)Z
    .locals 4
    .param p1, "runnable"    # Lrexsee/core/browser/clazz/SyncTask$BooleanRunnable;
    .param p2, "browser"    # Lrexsee/core/browser/Browser;
    .param p3, "cancelable"    # Z

    .prologue
    const/4 v3, 0x0

    .line 86
    if-eqz p2, :cond_0

    .line 87
    if-eqz p3, :cond_2

    .line 88
    iget-object v0, p2, Lrexsee/core/browser/Browser;->progressDialog:Lrexsee/core/progress/RexseeProgressDialog;

    sget-object v1, Lrexsee/core/lang/RexseeLanguage;->PROGRESS_ONGOING:Ljava/lang/String;

    new-instance v2, Lrexsee/core/browser/clazz/SyncTask$5;

    invoke-direct {v2, p0}, Lrexsee/core/browser/clazz/SyncTask$5;-><init>(Lrexsee/core/browser/clazz/SyncTask;)V

    invoke-virtual {v0, v1, v2}, Lrexsee/core/progress/RexseeProgressDialog;->showWithRunnable(Ljava/lang/String;Ljava/lang/Runnable;)V

    .line 100
    :cond_0
    :goto_0
    new-instance v0, Lrexsee/core/browser/clazz/SyncTask$6;

    invoke-direct {v0, p0, p1}, Lrexsee/core/browser/clazz/SyncTask$6;-><init>(Lrexsee/core/browser/clazz/SyncTask;Lrexsee/core/browser/clazz/SyncTask$BooleanRunnable;)V

    iput-object v0, p0, Lrexsee/core/browser/clazz/SyncTask;->mThread:Ljava/lang/Thread;

    .line 107
    iput-boolean v3, p0, Lrexsee/core/browser/clazz/SyncTask;->mBooleanRtn:Z

    .line 108
    iput-boolean v3, p0, Lrexsee/core/browser/clazz/SyncTask;->mSyncTag:Z

    .line 109
    iget-object v0, p0, Lrexsee/core/browser/clazz/SyncTask;->mThread:Ljava/lang/Thread;

    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    .line 110
    :goto_1
    iget-boolean v0, p0, Lrexsee/core/browser/clazz/SyncTask;->mSyncTag:Z

    if-eqz v0, :cond_3

    .line 116
    const/4 v0, 0x0

    iput-object v0, p0, Lrexsee/core/browser/clazz/SyncTask;->mThread:Ljava/lang/Thread;

    .line 117
    if-eqz p2, :cond_1

    iget-object v0, p2, Lrexsee/core/browser/Browser;->progressDialog:Lrexsee/core/progress/RexseeProgressDialog;

    invoke-virtual {v0}, Lrexsee/core/progress/RexseeProgressDialog;->hide()V

    .line 118
    :cond_1
    iget-boolean v0, p0, Lrexsee/core/browser/clazz/SyncTask;->mBooleanRtn:Z

    return v0

    .line 97
    :cond_2
    iget-object v0, p2, Lrexsee/core/browser/Browser;->progressDialog:Lrexsee/core/progress/RexseeProgressDialog;

    sget-object v1, Lrexsee/core/lang/RexseeLanguage;->PROGRESS_ONGOING:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lrexsee/core/progress/RexseeProgressDialog;->show(Ljava/lang/String;)V

    goto :goto_0

    .line 112
    :cond_3
    const-wide/16 v0, 0x64

    :try_start_0
    invoke-static {v0, v1}, Ljava/lang/Thread;->sleep(J)V
    :try_end_0
    .catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    .line 113
    :catch_0
    move-exception v0

    goto :goto_1
.end method

.method public runActivity(Landroid/content/Intent;Lrexsee/core/browser/Browser;)Lrexsee/core/browser/clazz/ActivityReturn;
    .locals 2
    .param p1, "startIntent"    # Landroid/content/Intent;
    .param p2, "browser"    # Lrexsee/core/browser/Browser;

    .prologue
    .line 157
    const/4 v0, 0x0

    iput-object v0, p0, Lrexsee/core/browser/clazz/SyncTask;->mActivityReturn:Lrexsee/core/browser/clazz/ActivityReturn;

    .line 158
    const/4 v0, 0x0

    iput-boolean v0, p0, Lrexsee/core/browser/clazz/SyncTask;->mSyncTag:Z

    .line 159
    iget-object v0, p2, Lrexsee/core/browser/Browser;->activityResult:Lrexsee/core/browser/clazz/ActivityResult;

    new-instance v1, Lrexsee/core/browser/clazz/SyncTask$9;

    invoke-direct {v1, p0}, Lrexsee/core/browser/clazz/SyncTask$9;-><init>(Lrexsee/core/browser/clazz/SyncTask;)V

    invoke-virtual {v0, p1, v1}, Lrexsee/core/browser/clazz/ActivityResult;->start(Landroid/content/Intent;Lrexsee/core/browser/clazz/ActivityResult$ActivityResultListener;)V

    .line 166
    :goto_0
    iget-boolean v0, p0, Lrexsee/core/browser/clazz/SyncTask;->mSyncTag:Z

    if-eqz v0, :cond_0

    .line 172
    iget-object v0, p0, Lrexsee/core/browser/clazz/SyncTask;->mActivityReturn:Lrexsee/core/browser/clazz/ActivityReturn;

    return-object v0

    .line 168
    :cond_0
    const-wide/16 v0, 0x64

    :try_start_0
    invoke-static {v0, v1}, Ljava/lang/Thread;->sleep(J)V
    :try_end_0
    .catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 169
    :catch_0
    move-exception v0

    goto :goto_0
.end method
